#include "FPCH.h"

#include "FFactoryOpenGL.h"

#include "FTextureOpenGL.h"
#include "FTextDisplayOpenGL.h"

namespace Font
{

	FactoryOpenGL::FactoryOpenGL(Library* a_Library) : Factory(a_Library)
	{

	}

	FactoryOpenGL::~FactoryOpenGL()
	{

	}

	Texture* FactoryOpenGL::CreateTexture(unsigned int a_Width, unsigned int a_Height, const unsigned char* a_Data)
	{
		return new TextureOpenGL(m_Library, a_Width, a_Height, a_Data);
	}

	Texture* FactoryOpenGL::LoadTexture(const tb::String& a_Path)
	{
		// TODO: Load textures
		return NULL;
	}

	TextDisplay* FactoryOpenGL::CreateTextDisplay(unsigned int a_GlyphCount)
	{
		return new TextDisplayOpenGL(m_Library, a_GlyphCount);
	}


}; // namespace Font